// icon tiles
%icon_tile {
- background-color: transparent; // no background
- color: $osd_fg_color;
border-radius: $base_border_radius + 4px;
padding: $base_padding;
- border-width: 2px;
- border-style: solid;
- border-color: transparent;
+ border: 2px solid transparent;
transition-duration: 100ms;
text-align: center;
}
icon-shadow: none;
}
}
+
+// overview icons
+@mixin overview-icon($color) {
+ .overview-icon {
+ @extend %icon_tile;
+ color: $color;
+ }
+
+ &:hover,
+ &:selected {
+ .overview-icon {
+ background-color: transparentize($color, .9);
+ }
+ }
+
+ &:focus {
+ .overview-icon {
+ background-color: transparentize($color, .7);
+ // border-color: $selected_bg_color;
+ }
+ }
+
+ &:drop {
+ .overview-icon {
+ background-color: transparentize($selected_bg_color, .15);
+ }
+ }
+
+ &:active,
+ &:checked {
+ .overview-icon {
+ background-color: transparentize(darken($osd_bg_color, 10%), .5);
+ }
+ }
+}
// Icon tiles in the app grid
.app-well-app,
-.app-folder {
-
- .overview-icon {
- @extend %icon_tile;
- color: $app_grid_fg_color;
- }
+%app-well-app {
+ @include overview-icon($app_grid_fg_color);
- &:selected {
- .overview-icon {
- background-color: transparentize($osd_bg_color,0.7);
- color: $app_grid_fg_color;
- }
- }
-
- &:hover,
- &:focus,
- &:selected {
- .overview-icon {
- background-color: transparentize($osd_fg_color,0.9);
- color: $osd_fg_color;
- }
- }
-
- &:focus {
- .overview-icon {
- background-color: transparentize($osd_fg_color,0.7);
- // border-color: $selected_bg_color;
- color: $app_grid_fg_color;
- }
- }
-
- &:drop {
- .overview-icon {
- background-color: transparentize($selected_bg_color,.15);
- }
- }
-
- &:active,
- &:checked {
- .overview-icon {
- background-color: transparentize(darken($osd_bg_color,10%), 0.5);
- }
+ > .overview-icon.overview-icon-with-label {
+ padding: 10px 8px 5px 8px;
+ spacing: $base_spacing;
}
}
/* App Folders */
.app-folder {
.overview-icon {
- @extend %icon_tile;
}
}
padding: 0px 88px 10px 88px;
}
-.app-well-app > .overview-icon.overview-icon-with-label {
- padding: 10px 8px 5px 8px;
- spacing: $base_spacing;
-}
-
// Label when no frequent apps
.no-frequent-applications-label { @extend %status_text; }
// Show apps button
.show-apps {
- color: $osd_fg_color;
-
- & .overview-icon {
- @extend %icon_tile;
- color: $osd_fg_color;
- }
+ @include overview-icon($osd_fg_color);
- &:hover,
&:focus,
- &:selected {
- .overview-icon {
- background-color: transparentize($osd_fg_color,0.9);
- color: $osd_fg_color;
- }
- }
-
- &:drop .overview-icon {
- background-color: transparentize($selected_bg_color,.15);
- }
-
- &:active, &:checked {
+ &:checked {
.overview-icon {
background-color: darken($osd_bg_color,10%);
- }
- }
-
- &:checked, &:focus {
- .show-apps-icon {
color: $fg_color;
- transition-duration: 100ms;
}
}
}
// Search results with icons
.grid-search-result {
- > .overview-icon {
- @extend %icon_tile;
- color: $osd_fg_color;
- }
-
- > .overview-icon.overview-icon-with-label {
- padding: 10px 8px 5px 8px;
- spacing: $base_spacing;
- }
-
- &:hover,
- &:focus,
- &:selected {
- .overview-icon {
- background-color: transparentize($osd_bg_color,0.8);
- color: $osd_fg_color;
- }
- }
-
- &:drop .overview-icon {
- background-color: transparentize($selected_bg_color,.15);
- }
-
- &:active .overview-icon,
- &:checked .overview-icon {
- background-color: transparentize(darken($osd_bg_color,10%), 0.5);
- }
+ @extend %app-well-app;
}
// search result provider